<div role="chip" {{{propertystr}}}>
    {{if type}}
        <input type="{{type}}" {{checked}} name="{{name}}" id="{{uid}}">
        <label for="{{uid}}">
    {{/if}}
    {{if location == before}}
        {{if beforetype == icon}} 
        <str-icon class="chip-prev-icon" icon="{{beforetext}}" width="18" height="18" nofocus></str-icon>
        {{elseif beforetype == avatar}}
        <img src="{{beforetext}}" alt="chipimg"/>
        {{/if}}
    {{/if}}
    <span><slot>默认内容</slot></span>
    {{if location == after}}
        {{if aftertype == icon}}<str-icon class="chip-next-icon" icon="{{aftertext}}" id="after" width="18" height="18" nofocus></str-icon>{{/if}}
    {{/if}}
    {{if type}}</label>{{/if}}
</div>